import { ListColumns } from "@/api/interface/ListColumns";
import { EditColumns } from "@/api/interface/EditColumns";
import { requestSysDictionaryGetOptions } from "@/api/modules/sysDictionary";
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	


//data.ts 该文件为自动生成，每次生成都会进行覆盖，请不要动该文件
export namespace UserAccount {
//字段名称enum
export enum Fields {
	id="id",
	avatar="avatar",
	wechat_open_id="wechat_open_id",
	mini_app_open_id="mini_app_open_id",
	huawei_union_id="huawei_union_id",
	huawei_openid="huawei_openid",
	username="username",
	password="password",
	status="status",
	phone="phone",
	points="points",
	huawei_push_token="huawei_push_token",
	vip_end_at="vip_end_at",
	vip_permanent="vip_permanent",
	is_cancel="is_cancel",
	created_at="created_at",
	updated_at="updated_at",

}

//[列表]字段配置数据列表
export const listColumnsData: ListColumns = new ListColumns(
{ type: "selection", fixed: "left", width: 70 },
	{ prop: "id", label: "ID",  align: "",isShow: true,tag: false },
	{ prop: "avatar", label: "头像",  align: "",isShow: true,tag: false },
	{ prop: "wechat_open_id", label: "微信openid",  align: "",isShow: true,tag: false },
	{ prop: "mini_app_open_id", label: "小程序openid",  align: "",isShow: true,tag: false },
	{ prop: "huawei_union_id", label: "华为unionid",  align: "",isShow: true,tag: false },
	{ prop: "huawei_openid", label: "华为openid",  align: "",isShow: true,tag: false },
	{ prop: "username", label: "用户名",  align: "",isShow: true,tag: false },
	{ prop: "password", label: "密码",  align: "",isShow: true,tag: false },
	{ prop: "status", label: "状态",  align: "",isShow: true,tag: false },
	{ prop: "phone", label: "手机号",  align: "",isShow: true,tag: false },
	{ prop: "points", label: "积分",  align: "",isShow: true,tag: false },
	{ prop: "huawei_push_token", label: "华为推送token",  align: "",isShow: true,tag: false },
	{ prop: "vip_end_at", label: "vip到期时间",  align: "",isShow: true,tag: false },
	{ prop: "vip_permanent", label: "是否为永久VIP",  align: "",isShow: true,tag: false ,enum: () => requestSysDictionaryGetOptions("")},
	{ prop: "is_cancel", label: "是否已注销",  align: "",isShow: true,tag: false ,enum: () => requestSysDictionaryGetOptions("")},
	{ prop: "created_at", label: "CreatedAt",  align: "",isShow: true,tag: false },
	{ prop: "updated_at", label: "UpdatedAt",  align: "",isShow: true,tag: false },


{prop: "operation", label: "操作", fixed: "right"}
);

//[创建]表单列默认配置
export const CreateColumnsData: EditColumns = new EditColumns(
	{ type: "input", title: "头像", col:{ span:12 }, field: "avatar", effect:{},props: {},validate:[{required: true, message: "必填项：头像(字符串类型)" }] },
	{ type: "input", title: "微信openid", col:{ span:12 }, field: "wechat_open_id", effect:{},props: {},validate:[{required: true, message: "必填项：微信openid(字符串类型)" }] },
	{ type: "input", title: "小程序openid", col:{ span:12 }, field: "mini_app_open_id", effect:{},props: {},validate:[{required: true, message: "必填项：小程序openid(字符串类型)" }] },
	{ type: "input", title: "华为unionid", col:{ span:12 }, field: "huawei_union_id", effect:{},props: {},validate:[{required: true, message: "必填项：华为unionid(字符串类型)" }] },
	{ type: "input", title: "华为openid", col:{ span:12 }, field: "huawei_openid", effect:{},props: {},validate:[{required: true, message: "必填项：华为openid(字符串类型)" }] },
	{ type: "input", title: "用户名", col:{ span:12 }, field: "username", effect:{},props: {},validate:[{required: true, message: "必填项：用户名(字符串类型)" }] },
	{ type: "input", title: "密码", col:{ span:12 }, field: "password", effect:{},props: {},validate:[{required: true, message: "必填项：密码(字符串类型)" }] },
	{ type: "number", title: "状态", col:{ span:12 }, field: "status", effect:{},props: {},validate:[{required: true, message: "必填项：状态(数字类型)" }] },
	{ type: "input", title: "手机号", col:{ span:12 }, field: "phone", effect:{},props: {},validate:[{required: true, message: "必填项：手机号(字符串类型)" }] },
	{ type: "number", title: "积分", col:{ span:12 }, field: "points", effect:{},props: {},validate:[{required: true, message: "必填项：积分(数字类型)" }] },
	{ type: "input", title: "华为推送token", col:{ span:12 }, field: "huawei_push_token", effect:{},props: {},validate:[{required: true, message: "必填项：华为推送token(字符串类型)" }] },
	{ type: "input", title: "vip到期时间", col:{ span:12 }, field: "vip_end_at", effect:{},props: {},validate:[{required: true, message: "必填项：vip到期时间(字符串类型)" }] },
	{ type: "switch", title: "是否为永久VIP", col:{ span:12 }, field: "vip_permanent", effect:{},props: {},validate:[{required: true, message: "必填项：是否为永久VIP" }] },
	{ type: "switch", title: "是否已注销", col:{ span:12 }, field: "is_cancel", effect:{},props: {},validate:[{required: true, message: "必填项：是否已注销" }] },

);

//[修改]表单列默认配置
export const UpdateColumnsData: EditColumns = new EditColumns(
	{ type: "hidden", title: "ID", col:{ span:12 }, field: "id", effect:{},props: {},validate:[{required: true, message: "必填项：ID(数字类型)" }] },
	{ type: "input", title: "头像", col:{ span:12 }, field: "avatar", effect:{},props: {},validate:[{required: true, message: "必填项：头像(字符串类型)" }] },
	{ type: "input", title: "微信openid", col:{ span:12 }, field: "wechat_open_id", effect:{},props: {},validate:[{required: true, message: "必填项：微信openid(字符串类型)" }] },
	{ type: "input", title: "小程序openid", col:{ span:12 }, field: "mini_app_open_id", effect:{},props: {},validate:[{required: true, message: "必填项：小程序openid(字符串类型)" }] },
	{ type: "input", title: "华为unionid", col:{ span:12 }, field: "huawei_union_id", effect:{},props: {},validate:[{required: true, message: "必填项：华为unionid(字符串类型)" }] },
	{ type: "input", title: "华为openid", col:{ span:12 }, field: "huawei_openid", effect:{},props: {},validate:[{required: true, message: "必填项：华为openid(字符串类型)" }] },
	{ type: "input", title: "用户名", col:{ span:12 }, field: "username", effect:{},props: {},validate:[{required: true, message: "必填项：用户名(字符串类型)" }] },
	{ type: "input", title: "密码", col:{ span:12 }, field: "password", effect:{},props: {},validate:[{required: true, message: "必填项：密码(字符串类型)" }] },
	{ type: "number", title: "状态", col:{ span:12 }, field: "status", effect:{},props: {},validate:[{required: true, message: "必填项：状态(数字类型)" }] },
	{ type: "input", title: "手机号", col:{ span:12 }, field: "phone", effect:{},props: {},validate:[{required: true, message: "必填项：手机号(字符串类型)" }] },
	{ type: "number", title: "积分", col:{ span:12 }, field: "points", effect:{},props: {},validate:[{required: true, message: "必填项：积分(数字类型)" }] },
	{ type: "input", title: "华为推送token", col:{ span:12 }, field: "huawei_push_token", effect:{},props: {},validate:[{required: true, message: "必填项：华为推送token(字符串类型)" }] },
	{ type: "input", title: "vip到期时间", col:{ span:12 }, field: "vip_end_at", effect:{},props: {},validate:[{required: true, message: "必填项：vip到期时间(字符串类型)" }] },
	{ type: "switch", title: "是否为永久VIP", col:{ span:12 }, field: "vip_permanent", effect:{},props: {},validate:[{required: true, message: "必填项：是否为永久VIP" }] },
	{ type: "switch", title: "是否已注销", col:{ span:12 }, field: "is_cancel", effect:{},props: {},validate:[{required: true, message: "必填项：是否已注销" }] },

);
}

